﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.Entity;
using Domain.Entity.bs;
using Domain.Entity.zct;

namespace Application.WarehouseService
{
    public interface IWarehouseService
    {


        //分页查询仓库表
        Task<FenYe<Warehouse>> GetWarehouse(FenYe<Warehouse> fenYe, int? status, string? whname, string? whdepname, string? whusername);
        //删除仓库信息
        Task<int> DeleteWarehouse(int id);

        //添加仓库信息
        Task<int> AddWarehouse(AddWarehouseDto addWarehouseDto);


        // 根据主管姓名获取联系电话
        Task<string> GetPhoneByUserName(string userName);


        //修改仓库状态
        Task<int> UpdateStatus(int id, int wh_status);


        //查询仓库名
        Task<List<Warehouse>> GetWarehouses();

        //修改仓库信息
        Task<int> UpdateWarehouse(UpdateWarehouseDto updateWarehouse);


        //查询仓库主管信息
        Task<List<User>> GetAllUsers();

        //根据id查询仓库信息
        Task<Warehouse> GetIdWarehouse(int id);

        //分页高级查询
        Task<FenYe<Warehouse>> GetvancedWarehouse(FenYe<Warehouse> fenYe, string? code, string? userName, string? name, string? minCapacity, string? maxCapacity, int? status, string? minNum, string? maxNum, string? depName, string? time);

        //修改锁定状态
        Task<int> LockWarehouse(int whid, int islock);
    }
}
